import request from '@/utils/request'

// 查询采购物料报表统计列表
export function listMaterial(query) {
  return request({
    url: '/report/scmPurchase/material/list',
    method: 'get',
    params: query
  })
}

// 查询采购物料报表统计详细
export function getMaterial(contractId) {
  return request({
    url: '/report/scmPurchase/material/' + contractId,
    method: 'get'
  })
}

// 新增采购物料报表统计
export function addMaterial(data) {
  return request({
    url: '/report/scmPurchase/material',
    method: 'post',
    data: data
  })
}

// 修改采购物料报表统计
export function updateMaterial(data) {
  return request({
    url: '/report/scmPurchase/material',
    method: 'put',
    data: data
  })
}

// 删除采购物料报表统计
export function delMaterial(contractId) {
  return request({
    url: '/report/scmPurchase/material/' + contractId,
    method: 'delete'
  })
}

// 导出采购物料报表统计
export function exportMaterial(query) {
  return request({
    url: '/report/scmPurchase/material/export',
    method: 'get',
    params: query
  })
}

